<style>
.inputDlg {
	position: absolute;
	top: 30%;
	left: 30%;
	z-index: 10;
	background: rgb(41, 111, 111);
	height: auto;
	width: 500px;
	border: 2px solid rgba(255, 255, 255, 0.59);
	border-radius: 5px;
	display: none;
	overflow:hidden;
}

.inputDlg .title {
	text-align: center;
	color: white;
	line-height: 30px;
	border: 1px solid #bbbbbb;
	border-radius: 5px 5px 0px 0px;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.53);
	background-image: linear-gradient(to top, rgba(255, 255, 255, 0.41),
		rgba(66, 64, 64, 0.54), rgba(252, 255, 255, 0.14));
}

.inputDlg .content {
	padding: 5px;
}

.inputDlg .content .content_area {
 
	font-size: 24px;
 
	padding: 3px;
	background:rgba(0, 0, 0, 0.35);
}

.inputDlg .btnarea {
	padding: 0 80px 0px 80px;
	line-height: 30px;
	color: white;
}

.inputDlg .btnarea .btn {
	height: 30px;
	line-height: 30px;
	width: 50px;
	background:none;
	color:white;
	padding:0px;
}
.content_area label{
float:left;}
.content_area input{
    height: 25px;
    width: 300px;
}
#ldimg{
    width: 80px;
    margin: 10px 160px;
    display:none;
    }
</style>
<script type="text/javascript" src="${s.base}/res/pc/js/jquery.form.js"  ></script>
<script type="text/javascript">
 
$(function(){ 
	
	function close(){
	 
       $("#file_upload").slideUp() 
    }

  $("#file_upload #btn_cancel").on("click",function(){ 
	  
	  close(); 
	  })

  $("#file_upload #btn_ok").on("click",function(){ 
		var tar=$(".mor_pic_item.active");
		$("#file_upload").height(263);
		$("#ldimg").show();
	
	 });
      $.fileDlg=$('#file_upload');
      $.fileDlg.show=function(){
    	     $("#file_upload").height(300);
			  var src=$(".level_2.active");
			  var data=new Date(); 
			  $(this).find("#currDiv").html(src.find(".name span").html());
			  $(this).find("#epuid").val(src.attr("puid"));
		 
			  $(this).find("#currTime").html(data.format("yyyy-MM-dd hh:mm:ss"));
			  $("#ldimg").hide();
			  $(this).slideDown();
			
  }
      
      $('#upfileForm').ajaxForm(function() {   
    	  showTipInfo({success:true,desc:"图片上传成功!"});
          close();
          $.loadImgList($(".level_2.active"));
       }); 
})

 
</script>


<div id="file_upload" class="inputDlg colorable">
	<div class="title" style="">
		<span>选中上传的图片</span>
	</div>
	<form  id="upfileForm" class="content" target="nm_iframe" method="post"  action="${s.base}/file/dupload"  enctype="multipart/form-data"  >
		<div id="inputarea" class="content_area">
		<label>当前设备:</label><div  id="currDiv"> </div> 
		<label>设备编号:</label><input id="epuid" type="text" name="puid"> <br/>
		<label>当前时间:</label><div  id="currTime"> </div>
		<label>图片文件:</label><input type="file" name="file" accept=".jpg,.png"><br/>
		<img src="${s.base}/res/images/upload.gif" id="ldimg">
		</div>
		<div class="btnarea">
			<input  id="btn_ok" class="btn" style="float: left;*padding: 0 15px; *height: 24px;" type="submit" value="提交"></input > <a
				id="btn_cancel" class="btn" style="float: right;">取消</a>
		</div>
	</form>
	 <iframe id="id_iframe" name="nm_iframe" style="display:none;"></iframe>
</div>

